package com.meowcook.controller;

import com.meowcook.common.AppResult;
import com.meowcook.pojo.vo.BoardVO;
import com.meowcook.service.IBoardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-04-30
 * Time: 16:15
 */
@Slf4j
@Api(tags = "板块操作接口")
@RestController
@RequestMapping("/board")
public class BoardController {

    @Resource
    private IBoardService boardService;

    @ApiOperation("查询板块列表")
    @GetMapping("/queryBoardList")
    public AppResult<List<BoardVO>> queryBoardList() {
        return AppResult.success(boardService.selectBoardList());
    }
}
